package com.gxa.k12.member.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.k12.common.util.PageUtils;
import com.gxa.k12.common.util.Query;
import com.gxa.k12.member.mapper.TeacherMapper;
import com.gxa.k12.member.entity.TeacherEntity;
import com.gxa.k12.member.service.TeacherService;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class TeacherServiceImpl extends ServiceImpl<TeacherMapper, TeacherEntity> implements TeacherService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TeacherEntity> page = this.page(
                new Query<TeacherEntity>().getPage(params),
                new QueryWrapper<TeacherEntity>()
        );

        return new PageUtils(page);
    }

}